#版本
XiTongBanBenHao=`cat /etc/redhat-release`;
#位数
CaoZuoXiTongWeiShu=`getconf LONG_BIT`;
#磁盘使用
CiPanShiYongQingKuang=`df -hl`;
#内存使用
NeiCunShiYongQingKuang=`free -m`;
#系统负载
XiTongFuZai=`uptime`;
# cpu
CPUWuLiShu=`cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l`;
CPULuoJiShu=`cat /proc/cpuinfo |grep "processor"|wc -l`;
CPUHeShu=`cat /proc/cpuinfo |grep "cores"|uniq`;

echo '----------------------------------------------------------------------------';

echo -n '时间: ';date +%Y-%m-%d;
echo -n '-------系统版本CPU----------';date +%Y-%m-%d;
echo -n '版本号: ';echo $XiTongBanBenHao;
echo -n '处理器: ';echo $CaoZuoXiTongWeiShu;
echo -n 'CPU-物理: ';echo $CPUWuLiShu;
echo -n 'CPU-逻辑: ';echo $CPULuoJiShu;
echo -n 'CPU-核数: ';echo $CPUHeShu;
echo -n '系统负载: ';echo $XiTongFuZai;
echo -n '磁盘使用: ';df -hl| sed -n '2p';
echo '内存使用: ';free -m;
echo '进程号-nginx: ';ps -A|grep nginx;
echo '进程号-php-fpm: ';ps -A|grep php;
echo '进程号-mysql: ';ps -A|grep mysql;
echo '进程号-java: ';ps -A|grep java;

echo '----------------------------------------------------------------------------';

